package common.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import common.mapper.CommonSysAuthorityMapper;
import common.model.po.SysAuthority;
import common.service.CommonSysAuthorityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 服务实现类
 *
 * @author 米泽鹏
 * @since 2022-03-11
 */
@Service
public class CommonSysAuthorityServiceImpl extends ServiceImpl<CommonSysAuthorityMapper, SysAuthority> implements CommonSysAuthorityService {

	@Resource
	private CommonSysAuthorityMapper mapper;

	@Override
	public List<Long> getAllAuthIdByUserId(Long userId) {
		return mapper.getAllAuthIdByUserId(userId);
	}

}
